package com.hw.controller;

import com.hw.dto.R;
import com.hw.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: MenuController
 * @Description: 菜单controller
 * @Author: vie0134
 * @Date: 2020-12-14 19:58
 * @Version: 1.0
 **/
@RestController
@RequestMapping("/menus")
public class MenuController {
    @Autowired
    private MenuService menuService;

    @RequestMapping("/findAllMenu")
    public R findAllMenu() {
        return R.setSuccess(menuService.findAllMenu());
    }
}
